import Vue from 'vue';
import Router from 'vue-router';
import Layout from '@/views/Layout';
import Login from '@/views/Login';
const ShangbaoList = () => import("@/components/gzw/Shangbao-list")

Vue.use(Router);

export default new Router({
  mode: 'hash',
  routes: [
    {
      path: '/',
      name: 'login',
      component: Login,
    },
    {
      name: 'index',
      path: '/index',
      component: Layout,
      children: [
        {
          path: '/shangbao',
          meta: {
            title: '文件上报',
          },
          component: ShangbaoList,
        }
      ],
    },
  ],
});
